<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-02 19:42:06
 * @LastEditTime: 2023-01-04 15:35:38
 * @LastEditors: sunkaiyuan sunkaiyuan@namenode.com
 * @Description: 
 */

namespace App\Repositories;

use App\Models\AutoCode;
use Illuminate\Http\Request;

class AutoCodeRepository extends Repositories
{


    public function __construct(AutoCode $model)
    {
        $this->model = $model;
    }



    /**
     * Summary of delete
     * @param mixed $ids
     * @return mixed
     */

    public function delete($ids)
    {
        return $this->whereIn("id", $ids)->get()->filter(function ($v) {
            return $v->delete();
        });
    }
}